<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>收支管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
			return false;
		}
	</script>
</head>
<body>
<ul class="nav nav-tabs">
	<li class="active"><a href="${ctx}/sys/user/accountInfo">收入明细</a></li>
</ul>
<form:form id="searchForm" modelAttribute="tbMpWalletStream" action="${ctx}/sys/user/accountInfo" method="post" class="breadcrumb form-search">
	<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
	<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
	<div style="margin-top:8px;">
		<li>
		<label>交易类型：</label>
			<select id="box" name="category" class="input-medium">
				<option value="">全部</option>
				<option  value="1" <c:if test="${tbMpWalletStream.category==1}"> selected</c:if> > 充值</option>
				<option  value="2" <c:if test="${tbMpWalletStream.category==2}"> selected</c:if> > 海外</option>
				<option  value="3" <c:if test="${tbMpWalletStream.category==3}"> selected</c:if> > 预定</option>
				<option  value="4" <c:if test="${tbMpWalletStream.category==4}"> selected</c:if> > 超市</option>
				<option  value="5" <c:if test="${tbMpWalletStream.category==5}"> selected</c:if> > 进货</option>
				<option  value="6" <c:if test="${tbMpWalletStream.category==6}"> selected</c:if> > 派送费</option>
				<option  value="7" <c:if test="${tbMpWalletStream.category==7}"> selected</c:if> > 提现</option>
				<option  value="8" <c:if test="${tbMpWalletStream.category==8}"> selected</c:if> > 物业缴费线上</option>
				<option  value="9" <c:if test="${tbMpWalletStream.category==9}"> selected</c:if> > 物业缴费线下</option>
				<option  value="10" <c:if test="${tbMpWalletStream.category==10}"> selected</c:if> >麻雀钱包充值线上</option>
				<option  value="11" <c:if test="${tbMpWalletStream.category==11}"> selected</c:if> > 麻雀钱包充值线下</option>
				<option  value="12" <c:if test="${tbMpWalletStream.category==12}"> selected</c:if> > 物业钱包充值线上</option>
				<option  value="13" <c:if test="${tbMpWalletStream.category==13}"> selected</c:if> > 物业钱包充值线下</option>
			</select>
		<label>支付方式：</label>
		<select  name="payType" class="input-medium">
			<option value="-1" <c:if test="${tbMpWalletStream.payType==-1}"> selected</c:if>>全部</option>
			<option  value="0" <c:if test="${tbMpWalletStream.payType==0}"> selected</c:if> > 微信</option>
			<option  value="1" <c:if test="${tbMpWalletStream.payType==1}"> selected</c:if> > 支付宝</option>
			<option  value="2" <c:if test="${tbMpWalletStream.payType==2}"> selected</c:if> > 麻雀钱包</option>
			<option  value="3" <c:if test="${tbMpWalletStream.payType==3}"> selected</c:if> > 物业钱包</option>
			<option  value="4" <c:if test="${tbMpWalletStream.payType==4}"> selected</c:if> > 现金</option>
			<option  value="5" <c:if test="${tbMpWalletStream.payType==5}"> selected</c:if> > 其他</option>
		</select>
		<label>交易方式：</label>
		<select  name="type" class="input-medium">
			<option value="-1" <c:if test="${tbMpWalletStream.type=='-1'}"> selected</c:if>>全部</option>
			<option  value="0" <c:if test="${tbMpWalletStream.type==0}"> selected</c:if> > 收入</option>
			<option  value="1" <c:if test="${tbMpWalletStream.type==1}"> selected</c:if> > 支出</option>
		</select>
	<label>日期范围</label>
		<input id="beginDate" name="beginDate" type="text" readonly="readonly" maxlength="20" class="input-mini Wdate" value="<fmt:formatDate value="${tbMpWalletStream.beginDate}" pattern="yyyy-MM-dd"/>" onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/>
		--<input id="endDate" name="endDate" type="text" readonly="readonly" maxlength="20" class="input-mini Wdate"
			value="<fmt:formatDate value="${tbMpWalletStream.endDate}" pattern="yyyy-MM-dd"/>" onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/>&nbsp;&nbsp;
			&nbsp;&nbsp;&nbsp;<input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>&nbsp;&nbsp;
		</li>
</div>
</form:form>
<sys:message content="${message}"/>
<span><font style="color: #00A6C7">${message1}</font></span>
<table id="contentTable" class="table table-striped table-bordered table-condensed">
	<thead><tr><th>交易类型</th><th>交易方式</th><th>交易金额</th><th>支付方式</th><th>操作时间</th></thead>
	<tbody><%request.setAttribute("strEnter", "\n");request.setAttribute("strTab", "\t");%>
	<c:forEach items="${page.list}" var="page">
		<tr>
			<td>
				<c:if test="${page.category=='1'}">
					充值
				</c:if>
				<c:if test="${page.category=='2'}">
					海外
				</c:if>
				<c:if test="${page.category=='3'}">
					预定
				</c:if>
				<c:if test="${page.category=='4'}">
					超市
				</c:if>
				<c:if test="${page.category=='5'}">
					进货
				</c:if>
				<c:if test="${page.category=='6'}">
					派送费
				</c:if>
				<c:if test="${page.category=='7'}">
					提现
				</c:if>
			</td>
			<td>
				<c:if test="${page.type=='0'}">
					收入
				</c:if>
				<c:if test="${page.type=='1'}">
					支出
				</c:if>
			</td>
			<td><fmt:formatNumber value="${page.changeMoney}" pattern="0.00"/></td>
			<td>
				<c:if test="${page.payType==0}">
					微信
				</c:if>
				<c:if test="${page.payType==1}">
					支付宝
				</c:if>
				<c:if test="${page.payType==2}">
					麻雀钱包
				</c:if>
			</td>
			<td><fmt:formatDate value="${page.createTime}" type="both"/></td>
		</tr>

	</c:forEach>
	</tbody>
</table>
<div class="pagination">${page}</div>
</body>
</html>